def divide(a, b):
    return a/b
while True:
    sFirst = input("First number:")
    if sFirst == "q": 
        break
    sSecond = input("Second number:")
    if sSecond == "q":
        break
    iFirst = int(sFirst)
    iSecond = int(sSecond)
    fResult = divide(iFirst,iSecond)
    print('{}/{}={}'.format(iFirst,iSecond,fResult))
print('bye')
